home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / utils / file / logiso.000 / logiso / Utils / Makefile < prev    next >
Encoding:
Makefile  |  1995-03-24  |  718 b   |  43 lines

  1. #
  2. # Makefile for the logiso utilities
  3. # (C) Copyright 1995 by Michael Coulter.  All rights reserved.
  4. #
  5. # Note! Dependencies are done automagically by 'make dep', which also
  6. # removes any old dependencies. DON'T put your own dependencies here
  7. # unless it's something special (ie not a .c file).
  8. #
  9.  
  10. .c.s:
  11.     $(CC) $(CFLAGS) -S $<
  12. .c.o:
  13.     $(CC) $(CFLAGS) -c $<
  14. .s.o:
  15.     $(AS) -o $*.o $<
  16.  
  17. CFLAGS=
  18.  
  19. CSRC_FILES =     logiso_get.c        \
  20.         logiso_stop.c        \
  21.         process_lists.c        
  22.  
  23. OBJS= $(CSRC_FILES:.c=.o)
  24. PROGS = $(CSRC_FILES:.c=)
  25.  
  26. Default: $(PROGS)
  27.  
  28. clean: tidy
  29.     -rm -f $(PROGS)
  30.  
  31. dep:
  32.     $(CPP) -M *.c > .depend
  33.  
  34. tidy:
  35.     -rm -f $(OBJS)
  36.  
  37. #
  38. # include a dependency file if one exists
  39. #
  40. ifeq (.depend,$(wildcard .depend))
  41. include .depend
  42. endif
  43.